#ifndef UTIL_FPSCOUNTER
#define UTIL_FPSCOUNTER
#include <boost/timer.hpp>
#include <list>
namespace Util{
class FPSCounter
{
public:
	FPSCounter();
	~FPSCounter();

	void update();
	double getFPS()const;
private:
		enum{SamplingNum = 50,};
	std::list<double> m_TimeList;
	boost::timer m_timer;
	double m_fps;
};
}//UsLib
#endif
